// 定义枚举，枚举默认从0开始，即BOY是0，GIRL是1
var SexType;
(function (SexType) {
    SexType[SexType["BOY"] = 0] = "BOY";
    SexType[SexType["GIRL"] = 1] = "GIRL";
})(SexType || (SexType = {}));
var user = {
    name: "dubeibei",
    sex: SexType.GIRL,
};
console.log(user);
